/**
 * log4js 日志输出配置文件
 * @type {exports}
 */
var log4js = require('log4js');

// logger configure
log4js.configure({
    appenders: {
        cheese: {
            type: "dateFile",
            filename: 'wifimanager.log',
            pattern: "_yyyy-MM-dd",
            alwaysIncludePattern: false,
            category: 'console'
        }//日期文件格式
    },
    replaceConsole: true,
    categories: { default: { appenders: ['cheese'], level: 'info' } }
});

module.exports = log4js.getLogger('cheese');